class HomeController < ApplicationController
 layout "home",:except=>[:ads]
 def index 
   url = request.subdomains.to_s
   logger.error  "--------------------------------------------------------------------"
   logger.error url
   logger.error  "--------------------------------------------------------------------"
   if url != "www"
     redirect_to "/login"
   end
 end
 def features
  @feature_img = "features/features-christmas.jpg"
  @features = Feature.find(:all)
 end
 def stories
   @feature_img = "features/story.jpg"
   @stories = Story.find(:all,:order=>'id desc')
 end
 def faq
 end
 def login
 end
 def ads
 end
end
